﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="EditDateSite.aspx.cs" Inherits="Restricted_EditDateSite" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="subhead">
        <img class="subheadImage" src="../images/slide-03.jpg" />
        <div class="container">
            <div class="subheadText">
                <h1 class="featurette-heading">Rediger date
                </h1>
            </div>
        </div>
    </div>
    <div class="container" id="content">
        <div style="margin-top: 20px">
            <div class="row">
                <div class="span12">
                    <div class="row">
                        <div class="span11" style="margin-bottom: -20px">
                            <div class="alert alert-info">
                                Du er blevet omdirigeret til din allerede oprettet date, da kun en ad gangen af tilladt. Denne kan redigeres her.
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="span4">
                            <h3>Dateoplysninger</h3>
                        </div>
                    </div>
                    <div class="row">
                        <div class="span3">
                            Sted (by)
                            <asp:TextBox runat="server" ID="CityZipcodeTxt" />
                            <cc1:AutoCompleteExtender runat="server" ID="autoComplete1" CompletionListItemCssClass="CitySearchAutocomplete" CompletionListHighlightedItemCssClass="CitySearchAutocompleteHighlighted" ServiceMethod="GetCompletionListCity" TargetControlID="CityZipcodeTxt" UseContextKey="true" CompletionListCssClass="z-index: 1000;"></cc1:AutoCompleteExtender>
                        </div>
                        <div class="span3 offset1">
                            Dato (Klik for at vælge)
                            <asp:TextBox ID="DateDate" runat="server"></asp:TextBox>
                            <cc1:CalendarExtender runat="server" ID="CalExtender" Format="dd MMM yyyy" TargetControlID="DateDate" PopupPosition="BottomLeft" />

                        </div>
                        <div class="span3 offset1">
                            Søger
                            <asp:DropDownList runat="server" ID="DateGender">
                                <asp:ListItem Text="Vælg køn" />
                                <asp:ListItem Text="Mand" />
                                <asp:ListItem Text="Kvinde" />
                            </asp:DropDownList>
                        </div>
                    </div>

                    <div class="row">
                        <div class="span3">
                            Hvem betaler for daten?
                            <asp:DropDownList runat="server" ID="DatePersonToPay">
                                <asp:ListItem Text="Delt" />
                                <asp:ListItem Text="Afholder" />
                                <asp:ListItem Text="Ansøger" />
                            </asp:DropDownList>
                        </div>
                        <div class="span3 offset1">
                            Alder fra/til
                            <br />
                            <asp:DropDownList runat="server" ID="DateAgeFrom" Width="103px">
                            </asp:DropDownList>
                            -
                            <asp:DropDownList runat="server" ID="DateAgeTo" Width="103px">
                            </asp:DropDownList>
                        </div>
                    </div>
                    <div class="row">
                        <div class="span3">
                            <h3>Beskrivelse</h3>
                        </div>
                    </div>
                    <div class="row">
                        <div class="span11">
                            <p>Skriv minimum 200 tegn</p>
                            <asp:TextBox ID="DateDescription" Width="860px" Height="100px" TextMode="MultiLine" runat="server"></asp:TextBox>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="span9">
                    <div class="pull-right">
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" ValidationExpression=".{200,}" ControlToValidate="DateDescription" runat="server" ErrorMessage="Beskrivelse skal være på minimum 200 tegn"></asp:RegularExpressionValidator>
                        <asp:Label ID="WarningLabel" CssClass="label label-important" runat="server" />
                    </div>

                </div>
                <div class="span3">
                    <asp:Button Text="Slet date" CssClass="btn btn-danger" ID="DeleteDate" OnClick="DeleteDate_Click" OnClientClick="return confirm('Er du sikker?')" runat="server" />
                    <asp:Button Text="Opdater date" CssClass=" btn btn-primary" runat="server" ID="Updatedate" OnClick="UpdateDate_Click" />
                </div>
            </div>
            <div style="height: 20px"></div>
        </div>
    </div>
</asp:Content>

